package com.hqyj.system.service.impl;

import com.hqyj.system.mapper.CustomMapper;
import com.hqyj.system.model.Custom;
import com.hqyj.system.service.CustomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomServiceImpl implements CustomService {

    @Autowired
    private CustomMapper customMapper;

    @Override
    public List<Custom> queryAllCustom() {
        return customMapper.queryAllCustom();
    }

    @Override
    public int addCustomByCustom(Custom custom) {
        return customMapper.insertSelective(custom);
    }

    @Override
    public Custom queryCustomByCustomId(int customId) {
        return customMapper.queryCustomByCustomId(customId);
    }

    @Override
    public int updateCustomByCustom(Custom custom) {
        return customMapper.updateCustomByCustom(custom);
    }
}
